<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <script>
        function calculate(second) {
            let hh = parseInt(''+second / 3600);
            let number = second % 3600;
            let mm = parseInt(''+number / 60);
            let ss = number % 60;
            document.write(`计算之后的时间是${hh}小时 ${mm}分 ${ss} 秒`);
        }
        let second = +prompt("请输入总秒数");
        calculate(second);
    </script>
</body>
</html>